package br.com.agenda.negocio.entity;


import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.List;


public class Usuario extends UnicastRemoteObject implements IUsuario, Serializable{
	
	private static final long serialVersionUID = 5912048366712583477L;
	private String nome;
	private List<IConvite> convites = new ArrayList<IConvite>();

    public Usuario(String nome) throws RemoteException{
    	this.nome=nome;
    }
    
	@Override
    public String getNome()throws RemoteException{
        return nome;
    }
	
	@Override
    public void setNome(String nome)throws RemoteException{
        this.nome=nome;
    }
	
	@Override
	public void setConvites(IConvite convite)throws RemoteException {
		this.convites.add(convite);
	}
	
	@Override
	public List<IConvite> getConvites() throws RemoteException{
		return convites;
	}
	
	
	
}

